home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / dec92.zip / 1012036A < prev    next >
Text File  |  1992-10-13  |  733b  |  38 lines

  1. //-------------------------------------------------
  2. // Person.h - Interface file for the Person object.
  3. //-------------------------------------------------
  4.  
  5. #import <objc/Object.h>
  6.  
  7. @interface Person : Object
  8. {
  9. char      *name;
  10. int       age;
  11. }
  12.  
  13. // Initialize newly created instance.
  14. - initWithName:(const char*)aName
  15.   age:(int)anAge;
  16.  
  17. // Tidy up the instance
  18. - free;
  19.  
  20. // Set instance variables.
  21. - setName:(const char*)aName;
  22. - setAge:(int)anAge;
  23.  
  24. // Get instance variable values.
  25. - (const char*)name;
  26. - (int)age;
  27.  
  28. // Print Person info.
  29. - printInfo;
  30.  
  31. // Archiving methods.
  32. - read:(NXTypedStream*)stream;
  33. - write:(NXTypedStream*)stream;
  34.  
  35. //-------------------------------------------------
  36. @end
  37.  
  38.